<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <p:resources />
    </h:head>
    <h:body>
        <p>
            <f:view>
                <h:form>

                    <h:outputLabel value="Sell"/>
                    <h:outputLabel value="Amount" for="id" />
                    <h:inputText id="sell" value="#{manage.message.message}" title="Amount" required="true" requiredMessage="The amount field is required." size="5"/>

                    <h:selectOneMenu id="sellcurrency" value="#{manage.sellCurrency}" title="Currency" required="true" requiredMessage="The currency field is required." >
                        <f:selectItems value="#{course.currencies}"/>
                    </h:selectOneMenu>


                    <h:outputLabel value="Buy"/>
                    <h:selectOneMenu id="buycurrency" value="#{manage.buyCurrency}" title="Currency" required="true" requiredMessage="The currency field is required." >
                        <f:selectItems value="#{course.currencies}"/>
                    </h:selectOneMenu>

                    <h:commandButton action="#{manage.saveMessage()}" value="Sell"/>

                </h:form> 
            </f:view>
        </p>
    </h:body>
</html>